﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkedTime.Cnsl.ProgramEntities.ProgramActions
{
    class ChangeCultureAction : IProgramAction
    {
        public void Execute()
        {
            ProgramState.Culture = ProgramUserInteraction.AskUserForEnglishCulture() ? "EN" : "ES";
            System.Threading.Thread.CurrentThread.CurrentUICulture =
                new System.Globalization.CultureInfo(ProgramState.Culture);
        }
    }
}
